<!DOCTYPE html>
<html>
<head>
    <include file="./public/sty.html"/>
    <style>
        .zclip {
            display: none !important;
        }
        #beizhus{border-left:0px;border-top:0px;border-right:0px;border-bottom:1px }
        .yangshi{border-left:0px;border-top:0px;border-right:0px;border-bottom:1px;}

    </style>
    <style>
        .c-pages {
            padding: 20px 0;
            text-align: center;
        }

        .c-pages.tl {
            text-align: left;
        }

        .c-pages span {
            display: inline-block;
            margin-right: 5px;
            font-size: 12px;
            height: 28px;
            line-height: 28px;
        }

        .c-pages span.col {
            color: #fe344e;
            font-weight: 600;
        }

        .c-pages span a {
            display: inline-block;
            margin: 0 3px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            padding: 0 12px;
            border: 1px solid #ccc;
            text-decoration: none;
            border-radius: 2px;
        }

        .c-pages span a:link, .c-pages span a:active, .c-pages span a:visited {
            color: #333;
        }

        .c-pages span a:hover {
            color: #ff8540;
        }

        .c-pages span a.active {
            color: #fff;
            background: #ff8540;
        }

        .c-pages .current {
            color: #fff;
            background: #ff8540;
            display: inline-block;
            margin: 0 3px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            padding: 0 12px;
            text-decoration: none;
            border-radius: 2px;
        }
    </style>
</head>
<body>
<div id="app" class="securityCenter">
    <include file="./public/header.html"/>

    <div class="container containerUser fix pt15" s="[object Object]">
        <div class="slideUser">
            <ul class="sildeSession"><h3><span></span>账号管理</h3>
                <li class=""><a href="./personalInfo.html">个人信息</a></li>
                <li class="curr"><a href="./securityCenter.html">安全中心</a></li>
                <li class=""><a href="./manageBankcard.html">银行卡管理</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>投注管理</h3>
                <li><a href="./BetRecord.html" class="">投注记录</a></li>
                <li><a href="./seekOrder.html" class="">追号记录</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>资金管理</h3>
                <li><a href="./BillRecord.html" class="">交易记录</a></li>
                <li class=""><a href="./PLstatement.html">今日盈亏</a></li>
            </ul>

            <?php if($wanjia['utype'] == '1'){ ?>
            <ul class="sildeSession">
                <h3><span></span>代理中心</h3>
                <li><a href="{:U('Users/agentIntro')}" class="">代理说明</a></li>
                <li class=""><a href="{:U('Users/agentReport')}">代理报表</a></li>
                <li><a href="{:U('Users/lowerReport')}" class="">下级报表</a></li>
                <li class=""><a href="{:U('Users/manageInvite')}">下级开户</a></li>
                <li><a href="{:U('Users/agentMember')}" class="">会员管理</a></li>
                <li><a href="{:U('Users/agentBetRecord')}" class="">投注明细</a></li>
                <li><a href="{:U('Users/agentBillRecord')}" class="">交易明细</a></li>
            </ul>
            <?php }?>

            <ul class="sildeSession"><h3><span></span>消息管理</h3>
                <li><a href="./letter.html" class="">站内信</a></li>
                <li><a href="./Notice.html" class="">网站公告</a></li>
            </ul>
        </div>


        <div data-v-401df7d7="" class="userRight">
            <div data-v-401df7d7="" class="userTitle mgb10">
                会员管理
                <foreach name="sh" item="vq">
                <a data-v-44b7026d=""> &gt; <span data-v-44b7026d="" onclick="fs('{$vq}')">{$vq}</span></a>
            </foreach>
            </div>
            <div data-v-401df7d7="" class="userMain mgb10 agentMember">

                <div data-v-401df7d7="" class="searchOpt">
                    账号：<input data-v-401df7d7="" type="text" id="zhanghao" class="userInput w100" value="{$zhanghao}" > &nbsp;
                    用户类型：
                    <ins data-v-401df7d7="" class="selectIcon">
                        <select data-v-401df7d7="" id="leixing" class="userSelect">
                            <option data-v-401df7d7="" value="0" <?php if($leixing=='0')echo "selected"; ?>>全部</option>
                            <option data-v-401df7d7="" value="1" <?php if($leixing=='1')echo "selected"; ?>>代理</option>
                            <option data-v-401df7d7="" value="2" <?php if($leixing=='2')echo "selected"; ?>>玩家</option>
                         </select>
                        <em data-v-401df7d7=""></em>
                    </ins>
                    &nbsp;
                    <a data-v-581fc0de="" class="submitBtn" onclick="sousuo()">搜索</a>
                    &nbsp; <a data-v-839ca216="" class="submitBtn" href="{:U('Users/agentMember')}" style="background-color: red">清空</a>
                </div>

                <div data-v-401df7d7="" class="accountDetail">
                    <table data-v-401df7d7="" width="100%" border="0" cellspacing="0" cellpadding="0" class="ty_table3">
                        <tbody data-v-401df7d7="">
                        <tr data-v-401df7d7="">
                            <th data-v-401df7d7="">账号</th>
                            <th data-v-401df7d7="">用户类型</th>
                            <th data-v-401df7d7="">下级人数</th>
                            <th data-v-401df7d7="">余额</th>
                            <th data-v-401df7d7="">最后登录</th>
                            <th data-v-401df7d7="">操作</th>
                        </tr>
                        </tbody>
                        <?php if(!empty($arr)){?>
                        <tbody class="Records_listCont">
                        <foreach name="arr" item="v">
                            <tr>
                                <td style="color: rgb(74, 169, 219);"><input type="text" id="accounts" value="{$v.accounts}" style="border: none" readonly="readonly" ></td>
                                <td>
                                    <?php echo count($sh)+1;?>级
                            <if condition="$v.utype eq 1 ">代理
                             <else /> 玩家
                             </if>
                                </td>
                                <td>
                                    <if condition="$v['num'] gt 0 "><a onclick="sw({$v.userid})">{$v.num}</a>
                                     <else />{$v.num}
                                     </if>
                                </td>
                                <td><?php echo sprintf('%.2f',$v['money']); ?></td>
                                <td>{$v.lasttime}</td>
                                <td data-v-401df7d7="">
                                    <div data-v-401df7d7="" class="manage">
                                        <a data-v-401df7d7="" title="投注明细" onclick="touzhu('{$v.accounts}')">
                                            <i data-v-401df7d7="" class="iconfont"></i>
                                        </a>
                                        <a data-v-401df7d7="" title="交易明细" onclick="jiaoyi('{$v.accounts}')">
                                            <i data-v-401df7d7="" class="iconfont" ></i>
                                        </a>

                                        <a data-v-401df7d7="" title="查看返点">
                                            <a href="javascript:;" data-ssc="<?php echo sprintf('%.1f',$v['ssc']); ?>"  data-k3="<?php echo sprintf('%.1f',$v['k3']); ?>" data-x11_5="<?php echo sprintf('%.1f',$v['x11_5']); ?>" data-fc3d="<?php echo sprintf('%.1f',$v['fc3d']); ?>" data-pl3_5="<?php echo sprintf('%.1f',$v['pl3_5']); ?>" data-kl8="<?php echo sprintf('%.1f',$v['kl8']); ?>" data-pk10="<?php echo sprintf('%.1f',$v['pk10']); ?>" class="detail">
                                                <i data-v-401df7d7="" class="iconfont"></i>
                                            </a>
                                        </a>

                                    </div>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                        <?php }else{ ?>
                        <div class="Records_listCont" id="t2">
                            <tr style="border-bottom-width: 0px;">
                                <td colspan="100">
                                    <div class="notContent" style="padding: 100px 0px;"><i class="iconfont"></i>暂无记录
                                    </div>
                                </td>
                            </tr>
                        </div>
                        <?php }?>
                    </table>
                    <!--分页-->
                    <div class="c-pages tc">
                        <span>{$page}第{$p}页/共{$totalpage}页</span>
                    </div>
                </div>
            </div>
        </div>
        <!--详情 begion-->
        <div data-v-a961bf6c="" class="_div" style="display:none;">
            <div data-v-a961bf6c="" class="layerBg"></div>
            <div data-v-a961bf6c="" class="layerBox">
                <div data-v-a961bf6c="" id="layui-layer4" type="page" times="4" showtime="0"
                     contype="string" class="layui-layer layui-layer-page  layer-anim"
                     style="z-index: 19891018; width: 650px; height: 500px; top: 256.5px; left: 307px;">
                    <div data-v-a961bf6c="" move="ok" class="layui-layer-title" style="cursor: move;">
                        详情
                    </div>
                    <div data-v-a961bf6c="" class="layui-layer-content" style="height: 450px;">
                        <div data-v-a961bf6c="" id="Detail" class="bonusTable" style="padding: 0px;">

                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">时时彩</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text"  disabled="disabled"  class="userInput mgl20 ssc">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['ssc']);?>）</span>
                                </li>
                            </ul>

                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">快3</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text" disabled="disabled" class="userInput mgl20 k3">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['k3']);?>）</span>
                                </li>
                            </ul>
                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">11选5</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text" disabled="disabled" class="userInput mgl20 x11_5">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['x11_5']);?>）</span>
                                </li>
                            </ul>
                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">福彩3D</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text" disabled="disabled" class="userInput mgl20 fc3d">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['fc3d']);?>）</span>
                                </li>
                            </ul>
                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">排列3/5</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text"  disabled="disabled" class="userInput mgl20 pl3_5">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['pl3_5']);?>）</span>
                                </li>
                            </ul>
                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">北京快乐8</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text" name="SSC" value="" disabled="disabled" class="userInput mgl20 kl8">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['kl8']);?>）</span>
                                </li>
                            </ul>
                            <ul data-v-a961bf6c="" class="InviteW">
                                <li data-v-a961bf6c="">北京PK10</li>
                                <li data-v-a961bf6c="">
                                    <input data-v-a961bf6c="" type="text" name="SSC" value="" disabled="disabled" class="userInput mgl20 pk10">&nbsp;
                                    <span data-v-a961bf6c="">（自身返点：<?php echo sprintf("%.1f",$arr1['pk10']);?>）</span>
                                </li>
                            </ul>

                        </div>
                    </div>
                    <span data-v-a961bf6c="" class="layui-layer-setwin">
                        <a data-v-a961bf6c="" href="javascript:;" class="close"></a>
                    </span>
                </div>
            </div>
        </div>
        <!--详情 end-->

        <!--验证账号弹出框 begion-->
        <div id="layermbox1" class="layermbox layermbox0 layermshow" index="1">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">·您搜索的会员账号不能为空·</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="layermbox" class="layermbox layermbox0 layermshow" index="1">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">·您搜索的会员账号不存在·</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <!--验证账号弹出框 end-->

    </div>
    <include file="./public/footer.html"/>
</div>


<script src="/style/js/jquery.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>
    $("#timeType a").click(function () {
        $(this).addClass("curr").siblings().removeClass("curr");
    })

    function touzhu(zhanghao){
        window.location.href = "/Users/agentBetRecord/zhanghao/" + zhanghao;
    }
    function jiaoyi(zhanghao){
        window.location.href = "/Users/agentBillRecord/zhanghao/" + zhanghao;
    }


    $(".detail").click(function () {
        var ssc = $(this).data("ssc");
        var k3 = $(this).data("k3");
        var x11_5 = $(this).data("x11_5");
        var fc3d = $(this).data("fc3d");
        var pl3_5 = $(this).data("pl3_5");
        var kl8 = $(this).data("kl8");
        var pk10 = $(this).data("pk10");
        $(".ssc").val(ssc);
        $(".k3").val(k3);
        $(".x11_5").val(x11_5);
        $(".fc3d").val(fc3d);
        $(".pl3_5").val(pl3_5);
        $(".kl8").val(kl8);
        $(".pk10").val(pk10);
        $("#ssc1").val(ssc);
        $("#k31").val(k3);
        $("#x11_51").val(x11_5);
        $("#fc3d1").val(fc3d);
        $("#pl3_51").val(pl3_5);
        $("#kl81").val(kl8);
        $("#pk101").val(pk10);

        $("._div").show();

    });
    $(".close").click(function () {
        $("._div").hide();
    });

    //搜索验证
    function sousuo() {
        var zhang = $("#zhanghao").val();
        var leixing = $("#leixing").val();
        var zhanghao = zhang.replace(/\s/g,"");
        window.location.href = "/Users/agentMember/zhanghao/" + zhanghao+"/leixing/"+leixing;
    }
    function sw(id){
        window.location.href = "/Users/agentMember/uid/" + id+"/typ/"+1;
    }
    function fs(nm){

    $.ajax({
         type: "POST",
         url: "{:U('Users/get_id')}",
         data: {name:nm},
         success: function(data){
            var dataObj=eval("("+data+")");//
             if(dataObj){
                location.href = '{:U("users/agentMember")}?userid='+dataObj+'&typ='+2;
             }
          }
     });
  }
</script>
</body>
</html>